home *** CD-ROM | disk | FTP | other *** search
/ Programming Sound Cards / Programming Sound Cards.iso / sound_61 / c_exmpl2.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-01  |  315 b   |  27 lines

  1. #include <stdio.h>
  2. #include <malloc.h>
  3. #include "sg_c.h"
  4.  
  5. FILE *fp;
  6.  
  7. char far buffer[200];
  8.  
  9. main()
  10. {
  11. int i;
  12.  
  13.     fp = fopen( "SND1.SND", "rb" );
  14.     fread( buffer, filelength( fileno( fp ) ), 1, fp );
  15.     fclose( fp );
  16.  
  17.     installit();
  18.  
  19.     dosound( buffer );
  20.  
  21.     while( eventsleft() );
  22.  
  23.     removeit();
  24.  
  25. }
  26.  
  27.